<?php

require_once 'Zend/Db/Table/Abstract.php';

class Application_Model_Forum extends Zend_Db_Table
{
    protected $_name = 'forum';
    protected $_primary='id';
    public function addcountreply($id)
    {
        $where = "`id`=$id";
        $forum = $this->fetchRow($where)->toArray();
        $countreplynow = $forum['countreply'];
        $data=array('countreply'=>$countreplynow+1);
        $this->update($data, $where);
    }
}

